<?php
class Privileges_Controller_Privileges implements Privileges_Controller_Mainable{
    
    private $privileges_model_privileges;
    private $privileges_model_accessleveldecision;
    
    public function __construct() {
        $this->privileges_model_accessleveldecision = new Privileges_Model_Accessleveldecision;
        $this->privileges_model_privileges = new Privileges_Model_Privileges;
    }
    
    public function main(array $variables = null) {
        $this->privileges_model_accessleveldecision->main($variables);
        $page = $this->privileges_model_privileges->main($variables);
        //var_dump($page);
        //die();
        $views = new Core_Controller_View($page['template']);
        $views->assign('page', $page);
    }

}
